\usepackage{comment}
\AtBeginDocument{
\excludecomment{solution}
\excludecomment{proof}
\excludecomment{inline}
}
